package com.github.chirspan.xaas.rbac.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.github.chirspan.xaas.mybatis.model.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author chenpan
 * @ClassName: SysRole
 * description:
 * @date 2018-04-02 14:24
 */
@TableName(value = "xaas_rbac_role")
@Data
@ApiModel(value = "SysRole" , description = "角色信息")
public class RbacRole extends BaseModel {

    @ApiModelProperty("角色编码")
    @TableField(value = "ROLE_CODE")
    private String roleCode;

    @ApiModelProperty("角色名称")
    @TableField(value = "ROLE_NAME")
    private String roleName;

    @ApiModelProperty("描述")
    @TableField(value = "DESCRIPTION")
    private String description;

    @TableField(exist = false)
    private String[] resources;

    @TableField(exist = false)
    private String resourceIds;
}
